package com.example.vue20220225.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;

import com.example.vue20220225.model.Power;
import com.example.vue20220225.model.Role;
import com.example.vue20220225.model.UserInfo;
import org.apache.ibatis.annotations.*;

import java.util.List;

public interface RoleDao extends BaseMapper<Role> {


    @Delete("delete from user_role where role_id = #{roleId}")
    void deleteUserRole(Integer roleId);
    @Delete("delete from role_power where role_id = #{roleId}")
    void deleteRolePower(Integer roleId);

    List<Power> powerselectlist(Integer roleId);

    void insertRolePower(@Param("list") List<Integer> list,@Param("roleId") Integer roleId);
}
